package com.example.task02;

import android.graphics.Color;
import android.support.annotation.IdRes;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class Task02A extends AppCompatActivity {

    private TextView title;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_task02);

        title = (TextView) findViewById(R.id.titleA);


        title.setOnClickListener(new View.OnClickListener(){
            public void onClick(View v){
                title.setBackgroundColor(Color.GREEN);
                title.setPadding(15,15,15,15);
            }
        });
    }
}
